package cn.jwm.utils;


/**
 * @author Administrator
 */
public class AjaxResult {


    private Boolean success = true;

    private String message = "操作成功!";

    private Object dataObj;


    public static AjaxResult me(){
        return new AjaxResult();
    }

    public Boolean getSuccess() {
        return success;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        // 返回当前对象
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getDataObj() {
        return dataObj;
    }

    public AjaxResult setDataObj(Object dataObj) {
        this.dataObj = dataObj;
        return this;
    }
}
